package com.atguigu.gulimall.product.service;

import com.atguigu.gulimall.product.entity.SpuInfoDescEntity;
import com.atguigu.gulimall.product.entity.vo.SpuSaveVo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.common.utils.PageUtils;
import com.atguigu.gulimall.product.entity.SpuInfoEntity;

import java.util.Map;

/**
 * spu信息
 *
 * @author huyulu
 * @email 1085068942@qq.com
 * @date 2021-11-26 22:16:12
 */
public interface SpuInfoService extends IService<SpuInfoEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 保存spu信息
     *
     * @author 胡菜鸡
     * @date 2021/12/23 9:57
     */
    boolean saveSpuInfo(SpuSaveVo spuSaveVo);

    /**
     * 保存spu基本信息
     *
     * @author 胡菜鸡
     * @date 2021/12/23 9:57
     */
    boolean saveSpuBaseInfo(SpuInfoEntity spuInfoEntity);

    /**
     * 按查询条件进行分页查询
     *
     * @author 胡菜鸡
     * @date 2021/12/27 16:47
     */
    PageUtils queryPageByCondition(Map<String, Object> params);

    /**
     * 商品上架功能
     *
     * @param spuId 需要上架的商品id
     * @author 胡菜鸡
     * @date 2021/12/31 11:13
     */
    boolean up(Long spuId);
}

